package com.ruoyi.project.modules.interfaceTestLog.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 接口测试日志接口对象 t_interface_test_log
 *
 * @author smallrain
 * @date 2022-06-27
 */
@Data
@ApiModel("接口测试日志接口")
public class InterfaceTestLog {
    private static final long serialVersionUID = 1L;

    /**
     * 接口id
     */
    @ApiModelProperty("接口id")
    private Long interfaceId;

    /**
     * 日志内容
     */
    @Excel(name = "日志内容")
    @ApiModelProperty("日志内容")
    private String content;

    @ApiModelProperty(hidden=true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @ApiModelProperty("状态")
    private String status;

    @ApiModelProperty("异常状态")
    private String errorStatus;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("interfaceId", getInterfaceId())
                .append("updateTime", getUpdateTime())
                .append("content", getContent())
                .toString();
    }
}